package cn.edu.cqu.bysj.controllers.sortTrains;

import java.util.List;

import cn.edu.cqu.bysj.domains.QueryLeftNewDTO;

public class TrainsSort {
	private SortStrategy sortStrategy;

	public List<QueryLeftNewDTO> getSortedTrains(List<QueryLeftNewDTO> trains) {
		return sortStrategy.sort(trains);
	}

	public void setSortStrategy(SortStrategy sortStrategy) {
		this.sortStrategy = sortStrategy;
	}
}
